clear
echo Processing tweets...
bin/hadoop fs -rmr /outputTrio
bin/hadoop fs -rmr /outputTrioCounter
bin/hadoop fs -rmr /inputTrioSorter
bin/hadoop fs -mkdir /inputTrioSorter
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.TrioCount /input /outputTrioCounter
bin/hadoop fs -mv /outputTrioCounter/part* /inputTrioSorter/
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.ResultSorter /inputTrioSorter /outputTrio
echo Finished processing tweets.
